package org.codingq92.project.bio_chat.util;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @author: CodingQ92
 * @date: 2025/6/24 23:35
 */
public class Constants {

    /*** 服务端IP **/
    public static final String SERVER_IP = "127.0.0.1";
    /*** 服务端端口 **/
    public static final int SERVER_PORT = 18000;
    /*** 用于处理消息的分隔符 **/
    public static final String SPLIT = "≧◔◡◔≦";

    /*** 0:用户上线 1:群发消息 2:私聊消息 **/
    public static final int LOGIN = 0;
    public static final int GROUP_MSG = 1;
    public static final int PRIVATE_MSG = 2;

    public static String getTime() {
        return LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss.SSS"));
    }
}
